#include <stdio.h>
int main()
{
    int num[3];
    int a, b, c, x;
    for (int i = 0; i < 3; i++)
    {
        scanf("%d", &num[i]);
    }
    for (int i = 0; i < 3; i++)
        for (int j = 0; j < 2; j++)
        {
            if (num[j] > num[j + 1])
            {
                int temp;
                temp = num[j];
                num[j] = num[j + 1];
                num[j + 1] = temp;
            }
        }
    a = num[0];
    b = num[1];
    c = num[2];
    // 找a,c之间的最大公约数x
    while (c % a != 0)
    {
        int temp;
        temp = c % a;
        c = a;
        a = temp;
        x = a;
    }
    a = num[0] / x;
    c = num[2] / x;
    printf("%d/%d\n", a, c);

    return 0;
}